package com.bs.demo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalTime;

@Data
public class ThData implements Serializable {
    private int id;
    private int Temperature;
    private int Humidity;
    private int Ray;
    private int Smoket;
    private int Inf;
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate Date;
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime Time;

}
